import Layout from '@/layout'
const constantRoutes = [
  {
      name: 'Login',
      path: '/login',
      hidden: true,
      component: () => import('@/views/login')
  },
  {
    path: '/',
    redirect: '/home',
    component: Layout,
    hidden: true,
    children: [
      {
        path: 'home',
        component: () => import('@/views/home/index'),
        name: 'Home',
        meta: { title: '首页', icon: 'el-icon-s-home' }
      }
    ]
  },
  {
    name: 'Home',
    path: '/home',
    component: Layout,
    meta: { title: '首页', icon: 'el-icon-s-home' }
  },
]
export default constantRoutes